
package com.CST.mapper.cst.cb;

import com.CST.entity.cb.BdDepartment;
import com.CST.entity.cb.RuleAmortization;
import com.CST.entity.cb.selectInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p></p>
 *
 * @author: y
 * @create: 2021-11-03 14:25
 **/

@Mapper
@Repository
public interface RuleAmortizationMapper extends BaseMapper<RuleAmortization> {

    List<RuleAmortization> getRuleAmortization(RuleAmortization entity);

    List<selectInfo> getYearMonth();

    RuleAmortization getRuleAmortizationById(RuleAmortization entity);

    List<BdDepartment> checkNoAmortizationDept(int year,int month);

    void addRuleAmortization(RuleAmortization entity);

    void insertBatchRuleAmortization(List<RuleAmortization> list);

    void modifyRuleAmortization(RuleAmortization entity);

    void batchDeleteRuleAmortization(List<Integer> ids);

    void deleteByYearMonth(int year,int month);

}
